<include file="Common@Backend/header" />
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            {$breadcrumb.A}
        </h3>
        <ul class="breadcrumb">
            <li>
                {$breadcrumb.M}
            </li>
            <li>
                {$breadcrumb.C}
            </li>
            <li class="active"> {$breadcrumb.A}  </li>
        </ul>
    </div>
    <!-- page heading end-->
    
    <!--body wrapper start-->
    <div class="wrapper">
        <div class="row">
            <div class="col-lg-10">
                <section class="panel">
                    <form role="form" action="{$action}" method="post">
                        <header class="panel-heading">
                            编辑分类
                        </header>
                        <div class="panel-body">
                            <input type="hidden" name="id" class="form-control" id="id"  value="{$category.id}" />
                            <div class="form-group">
                                <label for="category">分类名称</label>
                                <input type="text" name="category" class="form-control" id="category" placeholder="输入分类名称" value="{$category.category}">
                            </div>
                            <div class="form-group">
                                <label for="pid">上级分类</label>
                                <select name="pid" class="form-control">
                                    <option value="0">顶级分类</option>
                                    {$optionStr}
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="keyword">关键词</label>
                                <input type="text" name="keyword" class="form-control" id="keyword" placeholder="输入关键词" value="{$category.keyword}">
                            </div>
                            <div class="form-group">
                                <label for="description">描述</label>
                                <input type="text" name="description" class="form-control" id="description" placeholder="输入描述" value="{$category.description}">
                            </div>
                            <div class="form-group col-lg-2" style="padding-left: 0px;">
                                <label for="status">状态</label>
                                <select class="form-control m-bot15" id="status" name="status">
                                    <if condition="$category.status eq 1">
                                    <option value="1" selected="selected">启用</option>
                                    <option value="0">关闭</option>
                                <else />
                                    <option value="1">启用</option>
                                    <option value="0" selected="selected">关闭</option>
                                </if>
                                </select>
                            </div>
                        </div>
                        <div class="panel-body">
                            <button type="submit" class="btn btn-primary">保存</button>
                            <a href="{$cancel}" class="btn btn-primary">取消</a>
                        </div>
                    </form>
                </section>
            </div>
        </div>
    </div>
    <!--body wrapper end-->
<include file="Common@Backend/footer" />